/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package maincz.tests.webapp.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Entita pro zaznamy tabulky GC_CACHES
 * @author Main
 */
@Entity
@Table(name="GC_CACHES")
public class Cache implements Serializable {
        
    @Id
    @Column(name="GEOCODE")
    private String geocode;
        
    @Column(name="URL")
    private String url;

    @Column(name="DIFFICULTY")
    private Double difficulty;
    
    @Column(name="TERRAIN")
    private Double terrain;
    
    @Column(name="SIZE_ID")
    private Long sizeId;
    
    
    public String getGeocode() {
        return geocode;
    }

    public void setGeocode(String geocode) {
        this.geocode = geocode;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Double getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(Double difficulty) {
        this.difficulty = difficulty;
    }

    public Long getSizeId() {
        return sizeId;
    }

    public void setSizeId(Long sizeId) {
        this.sizeId = sizeId;
    }

    public Double getTerrain() {
        return terrain;
    }

    public void setTerrain(Double terrain) {
        this.terrain = terrain;
    }
    
    
    @Override
    public String toString() {
        String tmp = "";
        tmp += this.geocode + "\n";
        tmp += this.url + "\n";
        return tmp;
    }
}
